Using ResourceBundles |
![]() |
Instead of this |
Button stop = new Button("Stop"); stop.setBackground(Color.RED); |
|
![]() |
Do this |
rb = ResourceBundle.getBundle("MyPkg.MyBundle"); Button stop = new Button(rb.getString("stopLabel")); stop.setBackground((Color)rb.getObject("stopColor")); |